package com.行为型模型.O命令模式;

import java.util.HashMap;
import java.util.Map;

/**
 * 订单类
 */
public class Order {
    private int diningTable;
    private Map<String,Integer> foodDic;

    public int getDiningTable() {
        return diningTable;
    }

    public void setDiningTable(int diningTable) {
        this.diningTable = diningTable;
    }

    public Map<String, Integer> getFoodDic() {
        return foodDic;
    }

    public void setFoodDic(String name,Integer num) {
        if (foodDic==null)
        foodDic=new HashMap<>();
        this.foodDic.put(name,num);
    }
}
